<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="content-Type" charset="UTF-8">
    <meta http-equiv="x-ua-compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Title</title>
</head>
<body>



<table border="1px">
    <thead></thead>
    <tbody>
    {% for row in lis %}
       <tr>
      {% for name in row %}
          {% if forloop.parentloop.counter|divisibleby:'2' and forloop.counter|divisibleby:'2' %}
          <td style="color: green">{{ name }}</td>
              {% else %}
              <td>{{ name }}</td>
          {% endif %}
      {% endfor %}

       </tr>
    {% endfor %}

    </tbody>
</table>

{% if 2 > 1 == 1 %}
这是真的
    {% else %}
    这是假的
{% endif %}

</body>
</html>